<#include "/common/pagination.ftl" />
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Resume List</title>
    <link rel="stylesheet" href="${contextPath}/resources/css/bootstrap.css?v=${appVersion}">
    <link rel="stylesheet" href="${contextPath}/resources/css/demo.css?v=${appVersion}">
    <link rel="stylesheet" href="${contextPath}/webstatic/css_myloan/css.css?v=${appVersion}">
    <link rel="stylesheet" href="${contextPath}/resources/css/baseTable.css?v=${appVersion}">

    <script src="${contextPath}/resources/js/jquery.min.js?v=${appVersion}"></script>
    <script src="${contextPath}/resources/js/bootstrap.min.js?v=${appVersion}"></script>
    <script src="${contextPath}/resources/js/laydate/laydate.js?v=${appVersion}"></script>
    <script src="${contextPath}/resources/js/layer/layer.js?v=${appVersion}"></script>
    <script src="${contextPath}/resources/js/layui.js?v=${appVersion}"></script>
    <script type="text/javascript">
        $(function () {
            $(document).on('click', ".updateBtn", function () {
                var edit = $(this).parent().parent().children().eq(2);

                $('#updatePlanDate').val(edit.text());
                $('#updateForm').submit();
            }).on('click', ".copyBtn", function () {
                var edit = $(this).parent().parent().children().eq(2);
                $('#updatePlanDate').val(edit.text());
                $('#updateForm').attr('action', 'addPlan.htm');
                $('#updateForm').submit();
            });

        });


    </script>
</head>
<body>
<#escape x as x?html>
    <div class="container-fluid">
        <form action="showPlan.htm" role="form" method="POST" id="planForm">
            <div class="row">
                <div class="form-horizontal">
                    <div class="panel panel-default">
                        <div class="panel-heading text-center search-title-font-style">查询条件</div>
                        <div class="panel-body">
                            <div class=" col-lg-offset-5 col-lg-7 col-md-offset-5 col-md-7 col-sm-offset-5 col-sm-7
                                               col-xs-offset-5 col-xs-7">
                                <a class="btn btn-success" id="queryInfo" style="margin:10px">查询</a>
                                <a class="btn btn-default" id="resetBtn" style="margin:10px">重置</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row" style="float:right;margin:10px;">
                <a class="btn btn-info" href="addPlan.htm" style="margin:10px">新增</a>
            </div>
            <div class="row" style=" padding-right: 10px;   background-color: #f7f7f7;">
                <div class="col-sm-12">
                    <div class="panel-body">
                        <table class="table table-hover table-bordered table-background-gray table-striped">
                            <colgroup>
                                <col style="width:20%;">
                                <col style="width:20%;">
                                <col style="width:30%;">
                                <col style="width:30%;">
                            </colgroup>
                            <thead>
                            <tr style="background: #CCCCCC">
                                <th class="text-center">Id</th>
                                <th class="text-center">地址</th>
                                <th class="text-center">姓名</th>
                                <th class="text-center">手机</th>
                                <th class="text-center">操作</th>

                            </tr>
                            </thead>
                            <tbody id="content">
                                <#list pageInfo.list as item>
                                        <tr>
                                        <td class="text-center" style=" vertical-align: middle;">${item_index + 1}</td>
                                        <td class="text-center" style=" vertical-align: middle;">${item.planDate}</td>
                                        <td class="text-center" style=" vertical-align: middle;">${item.createUser}</td>
                                     <td class="text-center" style=" vertical-align: middle;">${item.createUser}</td>

                                     <td class="text-center">
                                        <a class="btn btn-sm btn-success updateBtn">修改</a>
                                        <a class="btn btn-sm btn-warning copyBtn">复制</a>
                                    </td>
                                    </tr>
                                </#list>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </form>
    </div>
</#escape>
</body>
</html>